package cn.tedu.straw.search.repository;

import cn.tedu.straw.search.vo.QuestionVO;
import com.github.pagehelper.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.elasticsearch.repository.ElasticsearchRepository;
import org.springframework.stereotype.Repository;

@Repository
public interface QuestionRepository extends ElasticsearchRepository<QuestionVO,Long> {
    Page<QuestionVO> queryByTitleMatchesOrContentMatches(
            String title, String content, Pageable pageable);
}
